package com.hyst.repository;

import java.util.Map;
import java.util.List;

import com.hyst.domain.Teacher;
import com.hyst.domain.TeacherStudent;

import tk.mybatis.mapper.common.Mapper;

public interface TeacherMapper extends Mapper<Teacher> {
	
	int getMaxSort();

	List<Map> getSelect2Data();

	List<Map> getSelect3Data(String key);

	/**
	 * 獲取我的學生
	* @Description: 
	* @param teacherId
	* @return	List<TeacherStudent>
	 */
	List<TeacherStudent> getMyStudents(String teacherId);

	List<Teacher> selectAll();

	void deletePeriod(String teacherId);

	void updatePeriod(String teacherId);

	void updateFreePeriod(String teacherId);

	List<Teacher> getAllTeachers();


	Teacher selectById(String uniqueid);

	Integer gettryLister(String teacherId);
	Integer getLearnCount(String teacherId);
}
